//RPC通讯的结构体
#pragma once
#include "ProtoMarco.h"

#pragma pack(push)
#pragma pack(1)

namespace proto
{
	struct LoginData
	{
		uint64 playerId = 0;
		uint64 cid = 0;		//某个acc连接client的id。 0 表示离线加载。
		uint32 accId = 0; //access 进程标识
	};
	REFLECTION(LoginData
		, playerId
		, cid
		, accId
	);

	struct MovePlayerToZoneData
	{
		uint16 targetZoneId = 0;
		uint32 netState = 0; //LoginState
		std::string data; //DbPlayer序列化数据
	}; 
	REFLECTION(MovePlayerToZoneData
		, targetZoneId
		, netState
		, data
	);
}

#pragma pack(pop)